home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / bitkeeper < prev    next >
Encoding:
Text File  |  2010-11-16  |  512 b   |  27 lines

  1. # BitKeeper completion adapted from code by  Bart Trojanowski <bart@jukie.net>
  2.  
  3. have bk &&
  4. _bk() {
  5.     local BKCMDS
  6.  
  7.     COMPREPLY=()
  8.     _get_comp_words_by_ref cur
  9.  
  10.     BKCMDS="$( bk help topics | awk '/^  bk/ { print $4 }' | \
  11.         xargs printf '%s ' )"
  12.  
  13.     COMPREPLY=( $( compgen -W "$BKCMDS" -- "$cur" ) )
  14.     _filedir
  15.  
  16.     return 0
  17. } &&
  18. complete -F _bk bk
  19.  
  20. # Local variables:
  21. # mode: shell-script
  22. # sh-basic-offset: 4
  23. # sh-indent-comment: t
  24. # indent-tabs-mode: nil
  25. # End:
  26. # ex: ts=4 sw=4 et filetype=sh
  27.